import common from "../../js/common"
import myComponent from "../../component/single-component.vue"

var app = new Vue({
    el: '#app',
    components :{
        'my-component' : myComponent
    },
    data: {
        message: 'Hello Vue!'
    }
});

var app2 = new Vue({
    el: '#app2',
    data:{
        msg: "this is app2"
    },
    mounted: function(){
      this.get()
    },
    methods: {
        get: function () {
            this.$http.get("/user").then(function (res) {
                console.log(res)
            });
        }
    }
});